package day4;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrTest2 {
    public static void main(String[] args) {
        String str="我喜欢java";
        byte[] bytes = str.getBytes();
        System.out.println(Arrays.toString(bytes));
        char[] chars = str.toCharArray();
        for (char c:chars)
            System.out.println((int)c);
    }
}
